package com.stormrage.entity.exam;

import java.io.Serializable;

public class ExmStudentExam implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -6600138561328750015L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer stuId;

	private Integer type;

	private String question;

	// ------------------------------- Fields -------------------------------

	public ExmStudentExam() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getStuId() {
		return stuId;
	}

	public void setStuId(Integer stuId) {
		this.stuId = stuId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	// ------------------------------- Fields -------------------------------

	public static ExmStudentExam instance(Integer stuId, Integer type, String question) {
		ExmStudentExam entity = new ExmStudentExam();
		entity.setStuId(stuId);
		entity.setType(type);
		entity.setQuestion(question);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " stuId - " + stuId + " type - " + type + " question - " + question;
	}

}
